import request from '@/utils/request'

// 查询园林专项养护计划列表
export function listMaintainSpecialPlan(query) {
  return request({
    url: '/comp/maintainSpecialPlan/list',
    method: 'get',
    params: query
  })
}

// 
export function queryCaseTypeTree(query) {
  return request({
    url: '/comp/maintainSpecialPlan/queryCaseTypeTree',
    method: 'get',
    params: query
  })
}
// 查询园林专项养护计划详细
export function getMaintainSpecialPlan(id) {
  return request({
    url: '/comp/maintainSpecialPlan/' + id,
    method: 'get'
  })
}

// 新增园林专项养护计划
export function addMaintainSpecialPlan(data) {
  return request({
    url: '/comp/maintainSpecialPlan',
    method: 'post',
    data: data
  })
}

// 修改园林专项养护计划
export function updateMaintainSpecialPlan(data) {
  return request({
    url: '/comp/maintainSpecialPlan',
    method: 'put',
    data: data
  })
}

// 删除园林专项养护计划
export function delMaintainSpecialPlan(id) {
  return request({
    url: '/comp/maintainSpecialPlan/' + id,
    method: 'delete'
  })
}
